package viewcomponents.creategame
{
	import flash.events.MouseEvent;
	
	import fui.FUIControllers.UISession;
	
	import mx.containers.Canvas;
	import mx.containers.HBox;
	import mx.containers.VBox;
	import mx.controls.Button;
	
	import viewcomponents.IComponent;

	public class CreateGamePanel extends Canvas implements IComponent
	{
		private var vbox:VBox = new VBox();
		private var hbox:HBox = new HBox();
		private var cgForm:CreateGameForm;
		private var createButton:Button = new Button();
		private var cleanButton:Button = new Button();
		
		public function CreateGamePanel()
		{
			super();
			setStyle("backgroundColor", 0x11ff11);
			vbox.percentHeight = 100;
			vbox.percentWidth = 100;
			addChild(vbox);
			
			cgForm = new CreateGameForm();
			vbox.addChild(cgForm);
			
			hbox.percentWidth = 100;
			createButton.label = "Create";
			createButton.addEventListener(MouseEvent.CLICK, createOnClick);
			hbox.addChild(createButton);
			cleanButton.label = "Clean";
			hbox.addChild(cleanButton);
			vbox.addChild(hbox);
		}
		
		
		private function createOnClick(event:MouseEvent):void{
			
		}
		
		public function set componentID(value:Number):void
		{
		}
		
		public function get componentID():Number
		{
			return 0;
		}
		
		public function set xmlSource(xml_path:String):void
		{
		}
		
		public function set session(uis:UISession):void
		{
		}
		
		public function get componentTitle():String
		{
			return null;
		}
		
		public function showComponent():void
		{
		}
		
		public function hideComponent():void
		{
		}
		
		public function isNeedAuth():Boolean
		{
			return false;
		}
		
		public function selfRemove():void
		{
		}
		
	}
}